package com.qyhl.school.school.reporter.contribution;


import com.qyhl.webtv.commonlib.entity.school.SchoolContributionBean;

public class SchoolContributionPresenter implements SchoolContributionContract.SchoolContributionPresenter {
    private SchoolContributionContract.SchoolContributionView mView;

    private SchoolContributionModel mModel;

    public SchoolContributionPresenter(SchoolContributionContract.SchoolContributionView mView) {
        this.mView = mView;
        this.mModel = new SchoolContributionModel(this);
    }


    @Override
    public void getDetail(int id) {
        mModel.getDetail(id);
    }

    @Override
    public void setDetail(SchoolContributionBean bean) {
        mView.setDetail(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
